package com.zh.media.domain.dto;

import com.zh.web.base.BasePageDto;
import com.zh.web.enums.OrderBy;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@ApiModel(value = "文章分页查询参数")
public class PageReplyDto extends BasePageDto implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty("主键")
    private Long id;
    @ApiModelProperty(value = "作品id", example = "1852649787767091202")
    private Long worksId;
    @ApiModelProperty("评论人id")
    private Long userId;
    @ApiModelProperty(value = "父id 默认为0", example = "0")
    private Long pId = 0L;
    @ApiModelProperty("排序字段 默认为高赞")
    private OrderBy orderBy = OrderBy.PRAISE;
}
